<?php

!defined('DEBUG') AND exit('Forbidden');

// 可以合并成一个文件，加快速度
// merge to one file.

$include_model_files = array (
	APP_PATH.'model/kv.func.php',
	APP_PATH.'model/misc.func.php',
	APP_PATH.'model/session.func.php',
	APP_PATH.'model/user.func.php',
	APP_PATH.'model/api.func.php',
	APP_PATH.'model/order.func.php',
	APP_PATH.'model/pay.func.php',
	
);

//if(DEBUG) {
	foreach ($include_model_files as $model_files) {
		include _include($model_files);
	}
/*} else {
	
	$model_min_file = $conf['tmp_path'].'model.min.php';
	$isfile = is_file($model_min_file);
	if(!$isfile) {
		$s = '';
		foreach($include_model_files as $model_files) {
			$s .= php_strip_whitespace(_include($model_files));
		}
		$r = file_put_contents($model_min_file, $s);
		unset($s);
	}
	include $model_min_file;
}*/


/*
function xn_php_strip_whitespace($file) {
	$s = php_strip_whitespace($file);
	if(substr($s, 0, 5) == '<?php') {
		$s = substr($s, 5);
	}
	if(substr($s, -2) == '?>') {
		$s = substr($s, 0, -2);
	}
	return $s;
}*/

?>